package com.didispace.service.hello;

import org.springframework.web.bind.annotation.*;

import com.didispace.User;

@RequestMapping("refactor")
public interface RefactorService {

    @RequestMapping(value="/hello4", method = RequestMethod.GET)
    String hello(@RequestParam("userName") String userName);

    @RequestMapping(value = "/hello5", method = RequestMethod.GET)
    User hello(@RequestHeader("userName") String userName, @RequestHeader("id") String id);

    @RequestMapping(value = "/hello6", method = RequestMethod.POST)
    String hello(@RequestBody User user);
}